package org.kzwl.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 张国伟/郭家恒
 * @since 2020-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cu_category")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分类id 自增
     */
    @TableId(value = "cu_category_id",type= IdType.AUTO)
    private Integer cuCategoryId;

    /**
     * 分类名称
     */
    @TableField("cu_category_name")
    private String cuCategoryName;

    /**
     * 父级 顶级分类为0
     */
    @TableField("cu_category_parent")
    private Integer cuCategoryParent;

    /**
     * 图标
     */
    @TableField("cu_category_icon")
    private String cuCategoryIcon;


}
